package com.entity.chat;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

@AllArgsConstructor
@NoArgsConstructor
@Data
@Accessors(chain = true)
public class Groups {
    private String id;//群组ID
    private String groupname;//群组名
    private String avatar;//群组头像
    private String userid;//用户id
    private Date intime;//加入时间
    private String grpowner; //群主
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getGroupname() {
		return groupname;
	}
	public void setGroupname(String groupname) {
		this.groupname = groupname;
	}
	public String getAvatar() {
		return avatar;
	}
	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}
	public String getUserid() {
		return userid;
	}
	public void setUserid(String userid) {
		this.userid = userid;
	}
	public Date getIntime() {
		return intime;
	}
	public void setIntime(Date intime) {
		this.intime = intime;
	}
	public String getGrpowner() {
		return grpowner;
	}
	public void setGrpowner(String grpowner) {
		this.grpowner = grpowner;
	}
	@Override
	public String toString() {
		return "Groups [id=" + id + ", groupname=" + groupname + ", avatar=" + avatar + ", userid=" + userid
				+ ", intime=" + intime + ", grpowner=" + grpowner + "]";
	}
    
}
